package vista;
import java.awt.BorderLayout;
import javax.swing.ComboBoxModel;
import javax.swing.DefaultComboBoxModel;
import javax.swing.JButton;
import javax.swing.JComboBox;
import javax.swing.JLabel;
import javax.swing.JScrollPane;
import javax.swing.JSeparator;
import javax.swing.JTextField;

import javax.swing.WindowConstants;
import javax.swing.SwingUtilities;


/**
* This code was edited or generated using CloudGarden's Jigloo
* SWT/Swing GUI Builder, which is free for non-commercial
* use. If Jigloo is being used commercially (ie, by a corporation,
* company or business for any purpose whatever) then you
* should purchase a license for each developer using Jigloo.
* Please visit www.cloudgarden.com for details.
* Use of Jigloo implies acceptance of these licensing terms.
* A COMMERCIAL LICENSE HAS NOT BEEN PURCHASED FOR
* THIS MACHINE, SO JIGLOO OR THIS CODE CANNOT BE USED
* LEGALLY FOR ANY CORPORATE OR COMMERCIAL PURPOSE.
*/
public class frmcompra extends javax.swing.JFrame {
	private JLabel lblcodigocompra;
	private JLabel ldldatoscompra;
	private JSeparator sp;
	private JLabel lblcostounitario2;
	private JSeparator jSeparator1;
	private JButton btnsalir;
	private JButton btncancelar;
	private JButton btnguardar;
	private JComboBox cmbunidad;
	private JLabel lblunidad;
	private JTextField txtcostounitario;
	private JLabel lblcostounitario;
	private JTextField txtcantidad;
	private JLabel lblcantidad;
	private JTextField txtnombreingrediente;
	private JLabel lblnombreingrediente;
	private JScrollPane sccompra;
	private JLabel lbltotalcompra2;
	private JTextField txttotalcompra;
	private JLabel lbltotalcompra;
	private JTextField txtcodigocompra;

	/**
	* Auto-generated main method to display this JFrame
	*/
	public static void main(String[] args) {
		SwingUtilities.invokeLater(new Runnable() {
			public void run() {
				frmcompra inst = new frmcompra();
				inst.setLocationRelativeTo(null);
				inst.setVisible(true);
			}
		});
	}
	
	public frmcompra() {
		super();
		initGUI();
	}
	
	private void initGUI() {
		try {
			setDefaultCloseOperation(WindowConstants.DISPOSE_ON_CLOSE);
			this.setTitle("Registrar Compra");
			getContentPane().setLayout(null);
			{
				lblcodigocompra = new JLabel();
				getContentPane().add(lblcodigocompra);
				lblcodigocompra.setText("Codigo :");
				lblcodigocompra.setBounds(29, 50, 64, 16);
			}
			{
				ldldatoscompra = new JLabel();
				getContentPane().add(ldldatoscompra);
				ldldatoscompra.setText("Datos de la Compra");
				ldldatoscompra.setBounds(17, 23, 133, 16);
				ldldatoscompra.setFont(new java.awt.Font("Segoe UI",1,12));
			}
			{
				txtcodigocompra = new JTextField();
				getContentPane().add(txtcodigocompra);
				txtcodigocompra.setBounds(93, 51, 75, 19);
			}
			{
				lbltotalcompra = new JLabel();
				getContentPane().add(lbltotalcompra);
				lbltotalcompra.setText("Total :");
				lbltotalcompra.setBounds(426, 308, 98, 18);
			}
			{
				txttotalcompra = new JTextField();
				getContentPane().add(txttotalcompra);
				txttotalcompra.setBounds(471, 306, 52, 23);
			}
			{
				sp = new JSeparator();
				getContentPane().add(sp);
				sp.setBounds(0, 92, 606, 9);
			}
			{
				lbltotalcompra2 = new JLabel();
				getContentPane().add(lbltotalcompra2);
				lbltotalcompra2.setText("BsF.");
				lbltotalcompra2.setBounds(523, 309, 50, 16);
			}
			{
				sccompra = new JScrollPane();
				getContentPane().add(sccompra);
				sccompra.setBounds(12, 144, 588, 150);
			}
			{
				lblnombreingrediente = new JLabel();
				getContentPane().add(lblnombreingrediente);
				lblnombreingrediente.setText("Nombre Ingrediente :");
				lblnombreingrediente.setBounds(7, 107, 125, 16);
			}
			{
				txtnombreingrediente = new JTextField();
				getContentPane().add(txtnombreingrediente);
				txtnombreingrediente.setBounds(127, 104, 62, 23);
			}
			{
				lblcantidad = new JLabel();
				getContentPane().add(lblcantidad);
				lblcantidad.setText("Cantidad :");
				lblcantidad.setBounds(201, 107, 69, 18);
			}
			{
				txtcantidad = new JTextField();
				getContentPane().add(txtcantidad);
				txtcantidad.setBounds(261, 105, 35, 23);
			}
			{
				lblcostounitario = new JLabel();
				getContentPane().add(lblcostounitario);
				lblcostounitario.setText("Costo Unitario :");
				lblcostounitario.setBounds(303, 108, 97, 16);
			}
			{
				txtcostounitario = new JTextField();
				getContentPane().add(txtcostounitario);
				txtcostounitario.setBounds(391, 105, 36, 23);
			}
			{
				lblcostounitario2 = new JLabel();
				getContentPane().add(lblcostounitario2);
				lblcostounitario2.setText("BsF.");
				lblcostounitario2.setBounds(433, 108, 28, 16);
			}
			{
				lblunidad = new JLabel();
				getContentPane().add(lblunidad);
				lblunidad.setText("Unidad :");
				lblunidad.setBounds(459, 108, 55, 16);
			}
			{
				ComboBoxModel cmbunidadModel = 
					new DefaultComboBoxModel(
							new String[] { "Item One", "Item Two" });
				cmbunidad = new JComboBox();
				getContentPane().add(cmbunidad);
				cmbunidad.setModel(cmbunidadModel);
				cmbunidad.setBounds(517, 105, 71, 23);
			}
			{
				btnguardar = new JButton();
				getContentPane().add(btnguardar);
				btnguardar.setText("Guardar");
				btnguardar.setBounds(73, 345, 87, 23);
			}
			{
				btncancelar = new JButton();
				getContentPane().add(btncancelar);
				btncancelar.setText("Cancelar");
				btncancelar.setBounds(242, 348, 89, 23);
			}
			{
				btnsalir = new JButton();
				getContentPane().add(btnsalir);
				btnsalir.setText("Salir");
				btnsalir.setBounds(516, 348, 67, 23);
			}
			{
				jSeparator1 = new JSeparator();
				getContentPane().add(jSeparator1);
				jSeparator1.setBounds(0, 332, 606, 10);
			}
			pack();
			this.setSize(622, 417);
		} catch (Exception e) {
		    //add your error handling code here
			e.printStackTrace();
		}
	}

}
